﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003DD RID: 989
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DisplayEquipmentInfo : IMessage<DisplayEquipmentInfo>, IMessage, IEquatable<DisplayEquipmentInfo>, IDeepCloneable<DisplayEquipmentInfo>, IBufferMessage
	{
		// Token: 0x17000CA7 RID: 3239
		// (get) Token: 0x06002C2A RID: 11306 RVA: 0x00079DED File Offset: 0x00077FED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DisplayEquipmentInfo> Parser
		{
			get
			{
				return DisplayEquipmentInfo._parser;
			}
		}

		// Token: 0x17000CA8 RID: 3240
		// (get) Token: 0x06002C2B RID: 11307 RVA: 0x00079DF4 File Offset: 0x00077FF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DisplayEquipmentInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000CA9 RID: 3241
		// (get) Token: 0x06002C2C RID: 11308 RVA: 0x00079E06 File Offset: 0x00078006
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DisplayEquipmentInfo.Descriptor;
			}
		}

		// Token: 0x06002C2D RID: 11309 RVA: 0x00079E0D File Offset: 0x0007800D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DisplayEquipmentInfo()
		{
		}

		// Token: 0x06002C2E RID: 11310 RVA: 0x00079E18 File Offset: 0x00078018
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DisplayEquipmentInfo(DisplayEquipmentInfo other) : this()
		{
			this.level_ = other.level_;
			this.rank_ = other.rank_;
			this.promotion_ = other.promotion_;
			this.exp_ = other.exp_;
			this.tid_ = other.tid_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002C2F RID: 11311 RVA: 0x00079E78 File Offset: 0x00078078
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DisplayEquipmentInfo Clone()
		{
			return new DisplayEquipmentInfo(this);
		}

		// Token: 0x17000CAA RID: 3242
		// (get) Token: 0x06002C30 RID: 11312 RVA: 0x00079E80 File Offset: 0x00078080
		// (set) Token: 0x06002C31 RID: 11313 RVA: 0x00079E88 File Offset: 0x00078088
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17000CAB RID: 3243
		// (get) Token: 0x06002C32 RID: 11314 RVA: 0x00079E91 File Offset: 0x00078091
		// (set) Token: 0x06002C33 RID: 11315 RVA: 0x00079E99 File Offset: 0x00078099
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Rank
		{
			get
			{
				return this.rank_;
			}
			set
			{
				this.rank_ = value;
			}
		}

		// Token: 0x17000CAC RID: 3244
		// (get) Token: 0x06002C34 RID: 11316 RVA: 0x00079EA2 File Offset: 0x000780A2
		// (set) Token: 0x06002C35 RID: 11317 RVA: 0x00079EAA File Offset: 0x000780AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Promotion
		{
			get
			{
				return this.promotion_;
			}
			set
			{
				this.promotion_ = value;
			}
		}

		// Token: 0x17000CAD RID: 3245
		// (get) Token: 0x06002C36 RID: 11318 RVA: 0x00079EB3 File Offset: 0x000780B3
		// (set) Token: 0x06002C37 RID: 11319 RVA: 0x00079EBB File Offset: 0x000780BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Exp
		{
			get
			{
				return this.exp_;
			}
			set
			{
				this.exp_ = value;
			}
		}

		// Token: 0x17000CAE RID: 3246
		// (get) Token: 0x06002C38 RID: 11320 RVA: 0x00079EC4 File Offset: 0x000780C4
		// (set) Token: 0x06002C39 RID: 11321 RVA: 0x00079ECC File Offset: 0x000780CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Tid
		{
			get
			{
				return this.tid_;
			}
			set
			{
				this.tid_ = value;
			}
		}

		// Token: 0x06002C3A RID: 11322 RVA: 0x00079ED5 File Offset: 0x000780D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DisplayEquipmentInfo);
		}

		// Token: 0x06002C3B RID: 11323 RVA: 0x00079EE4 File Offset: 0x000780E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DisplayEquipmentInfo other)
		{
			return other != null && (other == this || (this.Level == other.Level && this.Rank == other.Rank && this.Promotion == other.Promotion && this.Exp == other.Exp && this.Tid == other.Tid && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002C3C RID: 11324 RVA: 0x00079F60 File Offset: 0x00078160
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.Rank != 0U)
			{
				num ^= this.Rank.GetHashCode();
			}
			if (this.Promotion != 0U)
			{
				num ^= this.Promotion.GetHashCode();
			}
			if (this.Exp != 0U)
			{
				num ^= this.Exp.GetHashCode();
			}
			if (this.Tid != 0U)
			{
				num ^= this.Tid.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002C3D RID: 11325 RVA: 0x0007A003 File Offset: 0x00078203
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002C3E RID: 11326 RVA: 0x0007A00B File Offset: 0x0007820B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002C3F RID: 11327 RVA: 0x0007A014 File Offset: 0x00078214
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Promotion != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Promotion);
			}
			if (this.Rank != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Rank);
			}
			if (this.Tid != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Tid);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Level);
			}
			if (this.Exp != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Exp);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002C40 RID: 11328 RVA: 0x0007A0C4 File Offset: 0x000782C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.Rank != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Rank);
			}
			if (this.Promotion != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Promotion);
			}
			if (this.Exp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Exp);
			}
			if (this.Tid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Tid);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002C41 RID: 11329 RVA: 0x0007A164 File Offset: 0x00078364
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DisplayEquipmentInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.Rank != 0U)
			{
				this.Rank = other.Rank;
			}
			if (other.Promotion != 0U)
			{
				this.Promotion = other.Promotion;
			}
			if (other.Exp != 0U)
			{
				this.Exp = other.Exp;
			}
			if (other.Tid != 0U)
			{
				this.Tid = other.Tid;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002C42 RID: 11330 RVA: 0x0007A1F0 File Offset: 0x000783F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002C43 RID: 11331 RVA: 0x0007A1FC File Offset: 0x000783FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 40U)
				{
					if (num == 24U)
					{
						this.Promotion = input.ReadUInt32();
						continue;
					}
					if (num == 40U)
					{
						this.Rank = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 48U)
					{
						this.Tid = input.ReadUInt32();
						continue;
					}
					if (num == 88U)
					{
						this.Level = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.Exp = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400117D RID: 4477
		private static readonly MessageParser<DisplayEquipmentInfo> _parser = new MessageParser<DisplayEquipmentInfo>(() => new DisplayEquipmentInfo());

		// Token: 0x0400117E RID: 4478
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400117F RID: 4479
		public const int LevelFieldNumber = 11;

		// Token: 0x04001180 RID: 4480
		private uint level_;

		// Token: 0x04001181 RID: 4481
		public const int RankFieldNumber = 5;

		// Token: 0x04001182 RID: 4482
		private uint rank_;

		// Token: 0x04001183 RID: 4483
		public const int PromotionFieldNumber = 3;

		// Token: 0x04001184 RID: 4484
		private uint promotion_;

		// Token: 0x04001185 RID: 4485
		public const int ExpFieldNumber = 15;

		// Token: 0x04001186 RID: 4486
		private uint exp_;

		// Token: 0x04001187 RID: 4487
		public const int TidFieldNumber = 6;

		// Token: 0x04001188 RID: 4488
		private uint tid_;
	}
}
